package com.jkoss.wine.investment.service.impl;

import com.jkoss.wine.investment.entity.Investment;
import com.jkoss.wine.investment.mapper.InvestmentMapper;
import com.jkoss.wine.investment.service.IInvestmentService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 招商信息 服务实现类
 * 
 * @Author Jason
 * @Version 1.0, 2019-08-07
 * @See
 * @Since com.ossjk.oa.major.service.impl
 * @Description: TODO
 */
@Service
public class InvestmentServiceImpl extends ServiceImpl<InvestmentMapper, Investment> implements IInvestmentService {

	@Autowired
	private InvestmentMapper investmentMapper;
	 
	@Override
	public Page selectVoByPage(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoByPage(page, wrapper));
		return page;
	}

	@Override
	public List<Investment> selectVoByList(Wrapper wrapper) {
		// TODO Auto-generated method stub
		return baseMapper.selectVoByList(wrapper);
	}

}
